package cn.tedu.orderservice.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.FieldDefaults;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
public class OrderParam {
    @NotNull(message = "用户id不能为空")
    @Min(value = 1)
    @ApiModelProperty("用户id")
    Long userId;
    @NotNull(message = "充电桩编号不能为空")//基本类型,不能为空null
    @ApiModelProperty(value = "充电桩编号")
    Long pileId;
    @NotNull(message = "充电枪编号不能为空")//基本类型,不能为空null
    @ApiModelProperty(value = "充电枪编号")
    Long gunId;

}
